﻿
Option Strict On

Imports KUeLib.Attachments
Imports DbDataLib
Imports System.Text
Imports System.Data
Imports System.Data.Common

Namespace ServiceDefinitions

    Public MustInherit Class FileAttachmentDataService
        Inherits ServiceClass

        Public Sub New(ByVal dataService As DbDataService)
            MyBase.New(dataService)
        End Sub

        Public MustOverride Function GetAttachmentForProcess(ByVal procId As Integer) As List(Of FileAttachment)


        Public MustOverride Sub FillBinary(ByRef fileAttachment As FileAttachment)


        Public MustOverride Overloads Sub SaveBinary(ByVal fileAttachment As FileAttachment, ByVal binary As Byte())


        Public MustOverride Overloads Sub SaveBinary(ByVal fileAttachment As FileAttachment)


        Public MustOverride Function InsertNewFileAttachment(ByVal fileAttachment As FileAttachment) As FileAttachment


        Public MustOverride Function DeleteProcess(ByVal processId As Integer) As Integer


        Public MustOverride Overloads Sub Delete(ByVal fileAttachment As FileAttachment)


        Public MustOverride Overloads Sub Delete(ByVal fileAttachmentId As Integer)


    End Class

End Namespace
